<?php

	class grouptopicviewModel extends Model{

		protected $viewModel = true;
		protected $viewFields = array(
			'groups_topics' => array("id","groupid","userid","regtime","title","content","lastuserid","lastreverttime","istop","revertnum"),
			'user' => array("username","network_city","faceimg"),
		);

		protected $viewCondition = array("groups_topics.userid" => array("eqf","user.id"));
		public function getPk(){
			return "id";
		}
	}
?>